﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace MT.ControlLibrary.Controls
{
    public class DirectionButton : Button
    {
        //定义图标依赖属性
        public PointCollection DirectionPoints
        {
            get { return (PointCollection)GetValue(DirectionPointsProperty); }
            set { SetValue(DirectionPointsProperty, value); }
        }

        public static readonly DependencyProperty DirectionPointsProperty = DependencyProperty.Register("DirectionPoints", typeof(PointCollection), typeof(DirectionButton), new PropertyMetadata(null));

        static DirectionButton()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DirectionButton), new FrameworkPropertyMetadata(typeof(DirectionButton)));
        }
    }
}
